package cn.linjianhui.thread;

public class JoinMain {
    public static int i = 0;

    public static class T1 extends Thread {
        @Override
        public void run() {
            for(i = 0; i < 10000; i++);
        }
    }

    public static void main(String[] args) throws InterruptedException {
        T1 t1 = new T1();
        t1.start();
        t1.join();
        System.out.println(i);
    }
}
